include ../../config/kern.conf
BIN=bin
INCLUDE=include
OBJ=obj

MCFLAGS=${CFLAGS} -I${INCLUDE} -fcheck-new ${NOFLAGS}

all:
	@echo "Use [objects] or [clean] keywords."
objects:	buddy mem mm pt
	cp ${OBJ}/* ../

mem:
	g++ ${MCFLAGS} -c -o ${OBJ}/mem.o SlabAllocator.cc
	
buddy:
	g++ ${MCFLAGS} -c -o ${OBJ}/buddy.o BuddyAllocator.cc	

mm:
	g++ ${MCFLAGS} -c -o ${OBJ}/mm.o MemoryManager.cc	
	
pt:
	g++ ${MCFLAGS} -c -o ${OBJ}/pt.o PageTable.cc	

clean:
	rm ${OBJ}/*.o
	rm ${BIN}/*

